Repository navigation
[fix] Fix Fishing Net with Starcatcher 3.2+ and add Hybrid Aquatic capture. - #77
Merged
MarbleGateKeeper merged 2 commits intoNov 18, 2026
Conversation
Member
|
Thanks for your work! Some extra work is needed though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found these while debugging a modpack instance that had Create: Integrated Farming 1.4.3 running with Starcatcher 3.3.10. The net crashed the server with
NoSuchMethodErrorthe moment it caught a fish, and behind that sat two smaller bugs and one missing compat. This branch fixes all of it in one go.Starcatcher 3.2 removed the 5-arg
FishApi.makeItemStackNonBucketoverload and added a bob parameter.StarcatcherFishingNetCatchProvideralready builds a throwaway bob forselect()and now passes that same bob to the current method instead of calling the removed one. Compile dep is Starcatcher 3.3.10 now, andstarcatcher_version_rangeis[3.2,4), which is what the call actually needs.Captured entities kept their guaranteed equipment before. The net rolled the loot table and dropped a experience nugget, but never looked at the equipment slots before discarding the entity. Starcatcher fish carry the caught fish item in their body slot with a guaranteed drop chance, so a capture collected nothing besides the nugget. Equipment with a drop chance over 1.0F is collected now, the guaranteed-drop half of vanilla
dropCustomDeathLoot, minusPREVENT_EQUIPMENT_DROP. One accesstransformer line forMob.getEquipmentDropChancecame with this.canCapturecompared sizes with a strict<. A salmon is exactly 0.7 wide and the defaultfishingNetCapturedCreatureMaxSizeis 0.7, so stock config never captured a salmon, the fish the Fishing Net ponder scene shows. The check is<=now and the config comment says the limit itself is included.New optional integration for Hybrid Aquatic. HA entities don't extend vanilla
WaterAnimal, they go through hapi'sBaseWaterAnimal, so the default predicates never matched them. The integration registersBaseWaterAnimal.class::isInstanceon the sameFishingNetEntityCaptures.registerhook the Nether Depths integration uses for lava animals.neoforge.mods.tomlgets optional deps onhapi[1.1.3,)andhybrid_aquatic[1.7.4,2), and the dev runtime pulls in lithostitched and kotlin-for-forge since both HA and hapi declare the kotlinforforge loader and HA hard requires lithostitched. The existing geckolib pin 4.8.4 covers HA's 4.8.3 floor.About the Starcatcher range: 3.0.6 to 3.1.x still ship the old overload, and the new call does not exist there.
[3.2,4)says so now instead of[3.0.6,4)claiming support the code cannot deliver.Testing:
gradlew buildpasses with the new dependencies and all integration source sets compile. A dev server with Starcatcher 3.3.10, hapi, Hybrid Aquatic, kotlin-for-forge and lithostitched boots clean. Every fix here ran as a gametest in a small addon carrying the same changes. This branch moves the same fixes into the mod itself.CHANGELOG.md is left alone since it reads like it gets written at release time.